<template>
	<view class="mainBox">
		<uni-row class="demo-uni-row">
			<view class="mapBox" v-for="(item, index) in info" :key="index">
				<uni-col :span="16">
					<view class="name">{{item.name}}</view>
					<view class="address">{{item.address}}</view>
				</uni-col>
				<uni-col :span="6">
					<view class="btn">
						选择
						<uni-icons color="#fff" type="arrow-right" size="18"></uni-icons>
					</view>
				</uni-col>
			</view>
		</uni-row>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				info: [{
						id: '1',
						name: '上海店',
						address: '上海市浦东新区123号'
					},
					{
						id: '2',
						name: '浙江店',
						address: '浙江省杭州市余杭区123号浙江省杭州市余杭区浙江省杭州市余杭区浙江省杭州市余杭区'
					}
				],
			}
		},
		onLoad() {

		},
		methods: {

		}
	}
</script>

<style lang="scss">
	.mapBox {
		/* box-sizing: border-box; */
		width: 668rpx;
		border: 1px solid #f2f2f2;
		border-radius: 20rpx;
		background: #fff;
		overflow: hidden;
		padding: 40rpx 20rpx;
		margin: 20rpx;
		display: flex;
		justify-items: center;
		align-items: center;
		justify-content: space-between;

		.name {
			line-height: 2;
			font-weight: bold;
			font-size: 28rpx;
		}

		.address {
			font-size: 26rpx;
			line-height: 1.5;
			color: #666;
		}

		.btn {
			display: flex;
			justify-items: center;
			align-items: center;
			justify-content: center;
			background: #2979ff;
			color: #fff;
			text-align: center;
			border-radius: 10rpx;
			padding: 10rpx 0;
		}
	}
</style>